<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>PrestaShop 1.4+ Modification</title>
<link rel="icon" type="image/vnd.microsoft.icon" href="http://www.prestastore.com/img/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="http://www.prestastore.com/img/favicon.ico" />
<link href="http://www.prestastore.com/themes/prestastore/css/global.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body class="bg-lightgrey">

<p>&nbsp;</p>

<div class="page_lite">
	<h1>Product Ratings Suite v1.6</h1>
	A complete ratings package for your PrestaShop store.<br /><br />
	Allow customers/visitors to rate products. Add a BO Stats page and FO Block to show the best rated products.<br /><br />

	- Ratings of Products in AJAX v0.97<br />
	- Best Rated Products BO Stats v1.2<br />
	- Best Rated Products FO Block v1.5<br /><br /> 
	
	Feedback and requests for additional features are always welcome.<br /><br /> 
	
	<strong>NOTE: This modification is for PrestaShop v1.4+</strong><br /><br />
	
	<h1>Credits</h1>
	Dlani [Mend's], GCCSystem & Carmonteiro (The original PrestaShop ratings module).<br />
	Everyone who has contributed patches, code fixes and changes in the support thread!<br /><br />
	
	<a name="install"></a><h1>Install</h1>
	1. Using Text Editor software, make the following code modifications to your Prestashop files (Backup your files before making changes in case you make an error).<br /><br />

<textarea cols="70" rows="33" readonly="readonly">
#
#-----[ OPEN ]-----
#
classes/Product.php

#
#-----[ FIND ]-----
#
            !$this->deleteCartProducts() OR

#
#-----[ AFTER, ADD ]-----
#
            !$this->deleteProductRatings() OR

#
#-----[ FIND ]-----
#
    /**
    * Delete product images from database

#
#----- [ BEFORE, ADD ]-----
#
    /**
    * Delete product ratings
    *
    * @return array Deletion result
    */
    public function deleteProductRatings()
    {
        return Db::getInstance()->Execute('DELETE FROM `'._DB_PREFIX_.'ratings` WHERE `id` = '.intval($this->id));
    }</textarea><br /><br />

	<a name="changelog"></a><h1>Changelog</h1>
	v1.6 (2012-03-27)<br /> 
	<span style="padding-left: 30px;">[+] Added option to include Google Rich Snippets. (productrating)</span><br />
	v1.5 (2012-03-16)<br /> 
	<span style="padding-left: 30px;">[+] Added option to exclude products not available to order. (blockbestrated)</span><br />
	v1.4 (2011-07-14)<br /> 
	<span style="padding-left: 30px;">[*] Fixed missing quotes on database table name.</span><br />
	v1.3 (2011-06-01)<br /> 
	<span style="padding-left: 30px;">[*] Moved included JS/CSS calls to header hook and added page recognition.</span><br />
	v1.2 (2011-04-13)<br /> 
	<span style="padding-left: 30px;">[+] Added category related rated products when on product page. (blockbestrated)</span><br />
	v1.1 (2011-04-06)<br /> 
	<span style="padding-left: 30px;">[*] Fixed ratings for friendly urls.</span><br />
	v1.0 (2011-03-27)<br /> 
	<span style="padding-left: 30px;">[+] First release of re-packaged 1.4 modules to the PrestaShop community.</span><br /><br />
</div>

</body>
</html>